﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace A2DFramework.Infrastructure.Mvc.Extentions
{
    public static class HtmlExtentions
    {
        public static string HtmlString(this HtmlHelper helper, string src)
        {
            if (src == null || src.Trim().Length == 0)
                return "";
            src = src.Replace("<", "&lt;");
            src = src.Replace(">", "&gt;");
            return src;
        }
    }
}
